export enum UserRole {
  ADMIN = 'admin',
  COMPANY_ADMIN = 'company_admin',
  GUIDE = 'guide',
  STAFF = 'staff',
}

export interface LoginResult {
  token: string
}

export interface sysUser {
  id: string
  userName: string
  userRole: UserRole.ADMIN | UserRole.STAFF
  createDate: string
  updateDate: string
}

export interface sysCompanyUser {
  id: string
  userName: string
  userRole: UserRole.COMPANY_ADMIN | UserRole.GUIDE
  companyId: string
  companyName: string
  createDate: string
  updateDate: string

}

export type UserInfoRes = sysUser | sysCompanyUser

export interface SysUserReqData {
  userName: string
  password: string
  userRole: UserRole.ADMIN | UserRole.STAFF
}

export interface SysCompanyUserReqData {
  userName: string
  password: string
  userRole: UserRole.COMPANY_ADMIN | UserRole.GUIDE
  companyId: string
}

export type UserReqData = SysUserReqData | SysCompanyUserReqData
